home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / GENCSRC.ZIP / STRINGIN.C < prev    next >
C/C++ Source or Header  |  1987-11-21  |  400b  |  18 lines

  1.                                           /* Chapter 9 - Program 5 */
  2. #include "stdio.h"
  3.  
  4. main()
  5. {
  6. char big[25];
  7.  
  8.     printf("Input a character string, up to 25 characters.\n");
  9.     printf("An X in column 1 causes the program to stop.\n");
  10.  
  11.     do {
  12.        scanf("%s",big);
  13.        printf("The string is -> %s\n",big);
  14.     } while (big[0] != 'X');
  15.  
  16.     printf("End of program.\n");
  17. }
  18.